package com.lsw.pullableview;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ImageView;


public class PullableImageView extends ImageView implements Pullable
{
	private boolean isCanPullup = false;
	private boolean isCanPuldown = false;
	public PullableImageView(Context context)
	{
		super(context);
	}

	public PullableImageView(Context context, AttributeSet attrs)
	{
		super(context, attrs);
	}

	public PullableImageView(Context context, AttributeSet attrs, int defStyle)
	{
		super(context, attrs, defStyle);
	}

	@Override
	public boolean canPullDown()
	{
		return isCanPuldown;
	}

	@Override
	public boolean canPullUp()
	{
		return isCanPullup;
	}

	public void setCanPullup(boolean isCanPullup) {
		this.isCanPullup = isCanPullup;
	}

	public void setCanPulldown(boolean isCanPuldown) {
		this.isCanPuldown = isCanPuldown;
	}

}
